<script setup lang="ts">
import { ref } from "vue";

const position = ref("上海")
</script>
<template>
  <input type="text" v-model="position"></input>
  <h3>position的变量：</h3>
  <div v-html="position"></div>"
</template>
<style scoped>
div{
width:300px;
height:200px;
border:1px solid red;
} </style>